.recipe-home {
  padding: 20px;
  background-color: #f8f8f8;
  min-height: 100vh;

  .search-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;

    .search-input-box {
      flex: 1;
      background-color: #fff;
      border-radius: 8px;
      padding: 10px 16px;
      height: 70px;
      display: flex;
      align-items: center;
    }

    .search-input {
      width: 100%;
      height: 100%;
      font-size: 28px;
      color: #333;

      &::placeholder {
        color: #999;
      }
    }

    .custom-search-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 10px;
      height: 70px;
      min-width: 80px;
      padding: 0 15px;
      font-size: 26px;
      border-radius: 8px;
      font-weight: bold;
      background-color: #ff6b6b;
      color: white;
      position: relative;
      z-index: 5;

      &:active {
        opacity: 0.8;
      }
    }
  }

  .feature-section {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    .taroify-grid-item {
      --grid-item-text-color: #333;
      --grid-item-icon-size: 36px;
      --grid-item-font-size: 26px;
      --grid-item-icon-color: #ff6b6b;

      &:active {
        background-color: #f5f5f5;
      }
    }
  }

  .section-title {
    display: flex;
    align-items: center;
    margin: 20px 0 15px;

    .title-text {
      margin-left: 8px;
      font-size: 30px;
      font-weight: bold;
      color: #333;
    }
  }

  .recommended-recipes {
    white-space: nowrap;
    margin: 0 -20px;
    padding: 0 20px;

    .recipe-card {
      display: inline-block;
      width: 200px;
      margin-right: 15px;
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

      .recipe-image {
        width: 200px;
        height: 150px;
        background-color: #eee;
      }

      .recipe-info {
        padding: 10px 12px;

        .recipe-name {
          font-size: 28px;
          font-weight: bold;
          color: #333;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          display: block;
          margin-bottom: 8px;
        }

        .recipe-tags {
          margin-top: 5px;

          .tag {
            display: inline-block;
            font-size: 24px;
            padding: 2px 8px;
            background: #ffefef;
            color: #ff6b6b;
            border-radius: 4px;
            margin-right: 5px;
          }
        }
      }
    }
  }

  .daily-tip {
    margin: 20px 0;
    background: #e6f7ff;
    border-radius: 10px;
    padding: 15px;

    .tip-header {
      display: flex;
      align-items: center;
      margin-bottom: 10px;

      .tip-title {
        margin-left: 8px;
        font-size: 28px;
        font-weight: bold;
        color: #4a90e2;
      }
    }

    .tip-content {
      font-size: 26px;
      color: #666;
      line-height: 1.5;
    }
  }

  .category-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;

    .category-item {
      flex: 1 0 calc(50% - 10px);
      min-width: calc(50% - 10px);
      background: #fff;
      border-radius: 8px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

      &:nth-child(1) {
        background: #ffd6d6;
      }

      &:nth-child(2) {
        background: #d8f2d8;
      }

      &:nth-child(3) {
        background: #fff2cc;
      }

      &:nth-child(4) {
        background: #d9edf7;
      }

      .category-name {
        font-size: 28px;
        font-weight: bold;
        color: #333;
      }
    }
  }

  .footer {
    text-align: center;
    padding: 15px 0;

    .footer-text {
      font-size: 24px;
      color: #999;
    }
  }
}
